//
// Created by 21577 on 2025/3/2.
//
#include<stdio.h>
#include<math.h>

int main() {
    double p1, p2, p3, p4, p5;
    double r1 = 0.015, r2 = 0.021, r3 = 0.0275, r4 = 0.03, r5 = 0.0035;
    int n = 1000;
    p1 = n * (1 + 5 * r4);
    p2 = n * (1 + 2 * r2) * (1 + 3 * r3);
    p3 = n * (1 + 3 * r3) * (1 + 2 * r2);
    p4 = n * pow(1 + r1, 5);
    p5 = n * pow(1 + r5 / 4, 4 * 5);
    printf("p1=%.6lf\n", p1);
    printf("p2=%.6lf\n", p2);
    printf("p3=%.6lf\n", p3);
    printf("p4=%.6lf\n", p4);
    printf("p5=%.6lf\n", p5);
    return 0;
}